package com.Entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Mediacomment entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "mediacomment", catalog = "monitor")
public class Mediacomment implements java.io.Serializable {

	// Fields

	private long mediaCommentId;
	private long videoId;
	private Integer authorId;
	private String authorName;
	private Date commentTime;
	private String commentText;
	private String commentPicture;
	private Integer isReplyComment;
	private String originalCommentorName;
	private Date originalReplyTime;
	private long originalCommentId;
	private String originalCommentText;
	private Integer floorNum;

	// Constructors

	/** default constructor */
	public Mediacomment() {
	}

	/** full constructor */
	public Mediacomment(long videoId, Integer authorId,String authorName, Date commentTime,
			String commentText, String commentPicture, Integer isReplyComment,
			String originalCommentorName, Date originalReplyTime,
			long originalCommentId, String originalCommentText, Integer floorNum) {
		this.videoId = videoId;
		this.authorId = authorId;
		this.authorName=authorName;
		this.commentTime = commentTime;
		this.commentText = commentText;
		this.commentPicture = commentPicture;
		this.isReplyComment = isReplyComment;
		this.originalCommentorName = originalCommentorName;
		this.originalReplyTime = originalReplyTime;
		this.originalCommentId = originalCommentId;
		this.originalCommentText = originalCommentText;
		this.floorNum = floorNum;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "mediaCommentId", unique = true, nullable = false)
	public long getMediaCommentId() {
		return this.mediaCommentId;
	}

	public void setMediaCommentId(long mediaCommentId) {
		this.mediaCommentId = mediaCommentId;
	}

	@Column(name = "videoId")
	public long getVideoId() {
		return this.videoId;
	}

	public void setVideoId(long videoId) {
		this.videoId = videoId;
	}

	@Column(name = "authorId")
	public Integer getAuthorId() {
		return this.authorId;
	}

	public void setAuthorId(Integer authorId) {
		this.authorId = authorId;
	}
	
	@Column(name = "authorName", length = 50)
	public String getAuthorName() {
		return authorName;
	}

	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}

	@Column(name = "commentTime")
	public Date getCommentTime() {
		return this.commentTime;
	}

	public void setCommentTime(Date commentTime) {
		this.commentTime = commentTime;
	}

	@Column(name = "commentText", length = 19000)
	public String getCommentText() {
		return this.commentText;
	}

	public void setCommentText(String commentText) {
		this.commentText = commentText;
	}

	@Column(name = "commentPicture")
	public String getCommentPicture() {
		return this.commentPicture;
	}

	public void setCommentPicture(String commentPicture) {
		this.commentPicture = commentPicture;
	}

	@Column(name = "isReplyComment")
	public Integer getIsReplyComment() {
		return this.isReplyComment;
	}

	public void setIsReplyComment(Integer isReplyComment) {
		this.isReplyComment = isReplyComment;
	}

	@Column(name = "originalCommentorName")
	public String getOriginalCommentorName() {
		return this.originalCommentorName;
	}

	public void setOriginalCommentorName(String originalCommentorName) {
		this.originalCommentorName = originalCommentorName;
	}

	@Column(name = "originalReplyTime")
	public Date getOriginalReplyTime() {
		return this.originalReplyTime;
	}

	public void setOriginalReplyTime(Date originalReplyTime) {
		this.originalReplyTime = originalReplyTime;
	}

	@Column(name = "originalCommentId")
	public long getOriginalCommentId() {
		return this.originalCommentId;
	}

	public void setOriginalCommentId(long originalCommentId) {
		this.originalCommentId = originalCommentId;
	}

	@Column(name = "originalCommentText", length = 2000)
	public String getOriginalCommentText() {
		return this.originalCommentText;
	}

	public void setOriginalCommentText(String originalCommentText) {
		this.originalCommentText = originalCommentText;
	}

	@Column(name = "floorNum")
	public Integer getFloorNum() {
		return this.floorNum;
	}

	public void setFloorNum(Integer floorNum) {
		this.floorNum = floorNum;
	}

}